package com.mzm.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.mzm.domain.MediaInfo;
import com.mzm.util.persistency.GenericJpaDaoImpl;

@Repository("mediaInfoDao")
public class MediaInfoDao extends GenericJpaDaoImpl<MediaInfo, Integer> {

	public MediaInfoDao() {
		super(MediaInfo.class);
	}
	
	public List<MediaInfo> getMediaInfos(){
		List<MediaInfo> matchingNodes = getJpaTemplate().find(
				"SELECT " +
				"	mi " +
				"FROM " +
				"	com.mzm.domain.MediaInfo mi "
				);
		return matchingNodes;
	}
}
